<?php
//$student = [
//    'key' => 'value'
//];

$student = [
    'id' => '201800010002',
    'name' => '张三',
    'age' => 20,
    'score' => 100
];

//echo $student['id']; // 数组名[key] 引用对应的值

$user = [
    'username' => '数媒',
    'user_id' => 10001,
    'point' => 100,
];
$user['username'] = '电信';

$user['last_login_time'] = '20190808'; // 向索引数组中新增一个元素
var_dump($user);
